<?php

require_once(dirname(__FILE__).'/upgrade.php');

class OCI8UPGRADE extends UPGRADE
{
	/**
	* Check if a database table exists
	*
	* @param string $table The table name to check
	*
	* @return boolean If the table exists return true
	*/
	function TableExists($table)
	{
		$query = "select count(table_name) from all_tables where table_name = '$table' ";
		$result = $GLOBALS['AKB_DB']->FetchOne($query);
		// If there is a table with this name already we don't need to run this
		// part of the upgrade script

		if ($result) {
			return true;
		} else {
			return false;
		}
	}
		
}